Skip to content

Instantly share code, notes, and snippets.

# include <Siv3D.hpp> // Siv3D v0.6.14
struct Ball
{
P2Body body;
double r;
Color color;
};
void Main()
@nafiesl
nafiesl / how_to_get_telegram_chat_id.md
Created December 20, 2023 11:49
How to get Telegram Bot Chat ID

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 11, 2024 11:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@snower
snower / logging_file_lock_handler.py
Created May 31, 2023 01:27
logging_file_lock_handler
# -*- coding: utf-8 -*-
# 14-8-20
# create by: snower
import os
import time
import struct
import fcntl
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler
@noteeeeee
noteeeeee / JetBrainsActivation.md
Last active May 11, 2024 11:19
Webstorm/JetBrains products activation 2024 (Windows/MacOS)

Webstorm/JetBrains products activation 2024 (Windows/MacOS)

1.Proxy Settings

  1. Step 1: Navigate to Proxy settings.
  2. Step 2: Select "Manual proxy settings - HTTP".
    • Hostname: localhost
    • Port: 80

Set no proxy for:

@PurpleBooth
PurpleBooth / README-Template.md
Last active May 11, 2024 11:19
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@taylorhughes
taylorhughes / upload_api.py
Last active May 11, 2024 11:18
Use a pre-signed S3 URL with a modern web uploader
import uuid
from datetime import datetime
import boto3
from django.conf import settings
from mypy_boto3_s3 import S3Client
from rest_framework import serializers
from rest_framework.response import Response
from myproject.models import ProfilePhoto
@ritog
ritog / alacritty.toml
Created October 6, 2023 10:58
Example configuration file for Alacritty and simple guide
# $HOME/.config/alacritty/alacritty.toml
# by Rito Ghosh 2023-10-06
# Alacritty now uses TOML formatting for its config files.
# This is a simple example.
# There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
# It is not obvious how it translates to TOML. But it is extremely straightforward.
# example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively.
@bmaupin
bmaupin / free-backend-hosting.md
Last active May 11, 2024 11:17
Free backend hosting
@squarism
squarism / iterm2.md
Last active May 11, 2024 11:17
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)